package com.mf.gateway.config;

import com.mf.gateway.filter.AccessTokenFilter;
import com.mf.gateway.filter.GenericErrorFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 鉴权配置
 * User: zhaoming
 * DateTime: 2017-12-24
 * To change this template use File | Settings | File Templates.
 **/
@Configuration
public class AuthenticationConfigure {

    @Bean
    public AccessTokenFilter accessTokenFilter(){
        return new AccessTokenFilter();
    }

    @Bean
    public GenericErrorFilter genericErrorFilter(){
        return new GenericErrorFilter();
    }
}
